ifeq ($(KERNELRELEASE),)

KERNEL_DIR ?= /home/zzz/linux-3.0.86/
PWD= $(shell pwd)

ROOTFS_DIR=/home/zzz/samba_NFS_FTP/fs4412/rootfs

all:
	make -C $(KERNEL_DIR) M=$(PWD) modules

clean:
	make -C $(KERNEL_DIR) M=$(PWD) clean

install:
	cp -raf *.ko $(ROOTFS_DIR)/driver_module

else

	obj-m +=hello.o
	obj-m +=math.o

endif
